<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateCurveOrderRecordsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('curve_order_records', function (Blueprint $table) {
            $table->id();
            $table->unsignedInteger('order_id')->comment('曲线订单ID');
            $table->dateTime('expect_time')->comment('时间');
            $table->integer('expect_read_num')->default(0)->comment('期望访问次数');
            $table->tinyInteger('in_redis_list')->default(0)->comment('是否入队');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('curve_order_records');
    }
}
